using System;
using System.Collections.Generic;

namespace RBAC.Write.Api.Application.Dto.ERP
{
    /// <summary>
    /// 销售出库 新增/修改 DTO（主表 + 明细）
    /// </summary>
    public class SalesOutboundCreateOrUpdateDto
    {
        public string? OrderCode { get; set; }
        public string? OrderType { get; set; }
        public string? BusinessType { get; set; }
        public string? Period { get; set; }
        public string? CustomerCode { get; set; }
        public string? CustomerName { get; set; }
        public DateTime? OrderDate { get; set; }
        public string? BusinessStatus { get; set; }
        public string? Warehouse { get; set; }
        public string? OrderStatus { get; set; }
        public string? DeliveryNo { get; set; }
        public string? DeliveryType { get; set; }
        public string? BusinessDept { get; set; }
        public string? BusinessPerson { get; set; }
        public string? Remark { get; set; }
        public string? CreateUser { get; set; }
        public List<SalesOutboundDetailCUItemDto> Details { get; set; } = new();
    }

    public class SalesOutboundDetailCUItemDto
    {
        public long MaterId { get; set; }
        public string? CopyTradCode { get; set; }
        public int? Num { get; set; }
        public string? Remark { get; set; }
    }
}
